<div class="x_panel">
  <div class="x_content row">
    <div class="col-xs-12">
      <form class="form-horizontal form-label-left" action="{$actionUrl}" method="post" enctype="multipart/form-data">
        <div class="form-group">
          <label class="control-label col-md-2 col-sm-4 col-xs-12">美文句子（粗体显示）：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input class="form-control col-md-3 col-xs-12" required="required" type="text" name="form[sentence_name]" value="{$sentence.sentence_name}">
          </div>
          <label class="control-label col-md-2 col-sm-4 col-xs-12">美文句子（正常显示）：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input class="form-control col-md-3 col-xs-12" required="required" type="text" name="form[sentence_content]" value="{$sentence.sentence_content}">
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">所属模块：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <select class="form-control" name="form[sentence_extend_type]">
              <option value="0" {if $sentence.sentence_extend_type==0}selected{/if}>请选择</option>
              <option value="1" {if $sentence.sentence_extend_type==1}selected{/if}>淘转课堂</option>
              <option value="2" {if $sentence.sentence_extend_type==2}selected{/if}>少儿西文</option>
              <option value="3" {if $sentence.sentence_extend_type==3}selected{/if}>YCT</option>
              <option value="4" {if $sentence.sentence_extend_type==4}selected{/if}>DELE</option>
              <option value="5" {if $sentence.sentence_extend_type==5}selected{/if}>西语发音</option>
              <option value="6" {if $sentence.sentence_extend_type==6}selected{/if}>HSK</option>
              <option value="7" {if $sentence.sentence_extend_type==7}selected{/if}>淘淘拼音</option>
              <option value="8" {if $sentence.sentence_extend_type==8}selected{/if}>中文入学测试</option>
              <option value="9" {if $sentence.sentence_extend_type==9}selected{/if}>西文入学测试</option>
            </select>
          </div>

        </div>
        <div class="col-md-3 col-sm-12 col-xs-12 col-md-offset-4 col-sm-offset-4">
          <input type="hidden" name="sentence_id" value="{$sentence.sentence_id}">
          <button class="btn btn-primary" type="submit">更新</button>
        </div>
      </form>
    </div>
  </div>
</div>

<script src="{$theme}/js/source/ueditor/ueditor.config.js"></script>
<script src="{$theme}/js/source/ueditor/ueditor.all.js"></script>
<script src="{$theme}/js/source/ueditor/lang/zh-cn/zh-cn.js"></script>
<script src="{$theme}/js/source/layer/layer.js"></script>
<script src="{$theme}/libs/js/select/select2.full.js"></script>
<script>
    window.UEDITOR_CONFIG.initialFrameHeight = 320;

    UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
    UE.Editor.prototype.getActionUrl = function(action) {
        if (action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage') {
            return '/index/upload.html';
        } else if(action == 'uploadvideo')
        {
            return '/index/upload-video.html';
        }
        else
        {
            return this._bkGetActionUrl.call(this, action);
        }
    }
    var detailUe = UE.getEditor('J_detail');
</script>
